import request from '@/utils/request'

type Data<T> = {
    code: number;
    msg: string;
    data: T;
}

// 登录方法
export function login<T>(data: any) {
    return request<T, Data<T>>({
        url: '/login',
        headers: {
            isToken: false,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}

// 注销
export function logout() {
    return request({
        url: '/logout',
        method: 'post'
    })
}

// 获取用户详细信息
export function getInfo() {
    return request({
        url: '/getInfo',
        method: 'get'
    })
}

// 获取验证码
export function getCodeImg() {
    return request({
        url: '/captchaImage',
        headers: {
            isToken: false
        },
        method: 'get',
        timeout: 20000
    })
}
// 获取路由
export function getRouters() {
    return request({
        url: '/getRouters?isNewUi=1',
        method: 'get'
    })
}

// 煤场概览
export function FuelBunkerTRecordSummary(params?: any) {
    return request({
        url: '/business/FuelBunkerTRecord/summary',
        method: 'get',
        params: params
    })
}

// 煤场监控----------------------------------------------------------------------
// 盘煤记录
export function FuelWorkTInventoryList(params?: any) {
    return request({
        url: '/business/FuelWorkTInventoryInfo/list',
        method: 'get',
        params: params
    })
}

// 盘煤记录--与前一次差值
export function difference(id?: any) {
    return request({
        url: '/business/FuelWorkTInventoryInfo/difference/' + id,
        method: 'get'
    })
}

// 来煤计划-修改
export function editFuelWorkTInventory<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FuelWorkTInventoryInfo/UpdateDensity',
        // url: '/business/FuelWorkTInventoryInfo',
        method: 'put',
        data: data
    })
}

// 盘煤记录-删除
export function delFuelWorkTInventory<T>(ids: any) {
    return request<T, Data<T>>({
        url: '/business/FuelWorkTInventoryInfo/' + ids,
        method: 'delete'
    })
}

// 盘煤记录-详情
export function FuelWorkTInventoryInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FuelWorkTInventoryInfo/' + id,
        method: 'get'
    })
}

// 盘煤记录-盘煤设置
export function FuelWorkPileReport<T>(executeId: number, areaId: number) {
    return request<T, Data<T>>({
        url: '/business/FuelWorkTInventoryInfo/pileReport/' + executeId + '/' + areaId,
        method: 'get'
    })
}

// 三维动态测量

/**
* 查询煤场采集信息类表
*/
export function queryPosCollectionData() {
    return request({
        url: "business/FuelBunkerTRecord/QueryPosCollectionData",
        method: "get"
    });
}

/**
* 查询煤场自动测量数据
*/
export function queryScheduledData() {
    return request({
        url: "business/FuelBunkerTRecord/QueryScheduledData",
        method: "get"
    });
}

/**
* 自动查询煤场采集信息
*/
export function autoQueryPosData() {
    return request({
        url: "business/FuelBunkerTRecord/QueryPosData",
        method: "get"
    });
}

/**
* 开始采集
*/
export function startCollectionData(id: any) {
    return request({
        url: `business/FuelBunkerTRecord/StartCollectionData?ids=${id}`,
        method: "post"
    });
}
/**
* 停止采集
*/
export function stopCollectionData(id: any) {
    return request({
        url: `business/FuelBunkerTRecord/StopCollectionData?ids=${id}`,
        method: "post"
    });
}


/**
* 新增煤场信息表
*/
export function addFuelBunkerScheduledCheck(data: any) {
    return request({
        url: "business/FuelBunkerScheduledCheck",
        method: "post",
        data: data
    });
}

/**
* 修改煤场信息表
*/
export function updateFuelBunkerScheduledCheck(data: any) {
    return request({
        url: "business/FuelBunkerScheduledCheck",
        method: "put",
        data: data
    });
}

/**
* 获取煤场信息表详情
*/
export function getFuelBunkerScheduledCheck(selfId: any) {
    return request({
        url: `business/FuelBunkerScheduledCheck/${selfId}`,
        method: "get"
    });
}









// 环境监测
export function DeviceTEnvmonitorMonitored(BunkerId?: any, Category?: any, QueryDate?: any) {
    return request({
        url: '/business/SystemDeviceTEnvmonitor/monitored/' + BunkerId + '/' + Category + '/' + QueryDate,
        method: 'get'
    })
}



// 煤堆信息
export function pileInBunker(BunkerId: any, AreaId: any, QueryDate: any) {
    return request({
        url: '/business/FuelBunkerTRecord/pileInBunker/' + BunkerId + '/' + AreaId + '/' + QueryDate,
        method: 'get'
    })
}

// 煤堆一览表
export function pileReport(BunkerId: any, QueryDate: any) {
    return request({
        url: '/business/FuelBunkerTRecord/pileReport/' + BunkerId + '/' + QueryDate,
        method: 'get'
    })
}


// 数字化煤场-按月份查看
export function JinhaocunByMonth() {
    return request({
        url: '/business/Home/GetJinhaocunByMonth',
        method: 'get'
    })
}
// 数字化煤场-按煤场查看
export function JinhaocunByDate(date: any) {
    return request({
        url: '/business/Home/GetJinhaocunByDate?currentDate=' + date,
        method: 'get'
    })
}
// 数字化煤场-按煤种查看
export function JinhaocunByBunkerType(date: any) {
    return request({
        url: '/business/Home/GetJinhaocunByBunkerType?currentDate=' + date,
        method: 'get'
    })
}


// 首页--设备状态
export function deviceStatus() {
    return request({
        url: '/business/Home/deviceStatus',
        method: 'get'
    })
}
// 首页--预警情况
export function warningsHowMany() {
    return request({
        url: '/business/Home/warnings?HowMany=3',
        method: 'get'
    })
}

// 首页--更新设备故障处理
export function DeviceWarnInfoStatus<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/DeviceWarnInfo/status',
        method: 'put',
        data: data
    })
}

// 首页--煤场信息
export function bunkersInfo() {
    return request({
        url: '/business/Home/bunkers',
        method: 'get'
    })
}

// 首页--加仓情况
export function furnaces() {
    return request({
        url: '/business/Home/furnaces',
        method: 'get'
    })
}



// 告警处理
export function QueryDeviceWarnDealData(params?: any) {
    return request({
        url: '/business/DeviceWarnInfo/QueryDeviceWarnDealData',
        method: 'get',
        params: params
    })
}









// 来煤计划
export function CoalInPlanList(params?: any) {
    return request({
        url: '/business/CoalInPlan/list',
        method: 'get',
        params: params
    })
}
// 来煤计划-添加
export function addCoalInPlan<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/CoalInPlan',
        method: 'post',
        data: data
    })
}
// 来煤计划-修改
export function editCoalInPlan<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/CoalInPlan',
        method: 'put',
        data: data
    })
}
// 来煤计划-删除
export function delCoalInPlan<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/CoalInPlan/' + id,
        method: 'delete'
    })
}
// 来煤计划-详情
export function CoalInPlanInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/CoalInPlan/' + id,
        method: 'get'
    })
}

// 煤炭接卸预测-预测
export function CoalInPlanPredict<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/CoalInPlan/predict',
        method: 'post',
        data: data
    })
}


// 来煤煤质
export function FactoryCoalQualityList(params?: any) {
    return request({
        url: '/business/FactoryCoalQuality/newlist',
        method: 'get',
        params: params
    })
}

// 来煤煤质-添加
export function addFactoryCoalQuality<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FactoryCoalQuality',
        method: 'post',
        data: data
    })
}
// 来煤煤质-修改
export function editFactoryCoalQuality<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FactoryCoalQuality',
        method: 'put',
        data: data
    })
}
// 来煤煤质-删除
export function delFactoryCoalQuality<T>(ids: any) {
    return request<T, Data<T>>({
        url: '/business/FactoryCoalQuality/' + ids,
        method: 'delete'
    })
}
// 来煤煤质-详情
export function FactoryCoalQualityInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FactoryCoalQuality/' + id,
        method: 'get'
    })
}


// 来煤记录
export function BunkerInRecordList(params?: any) {
    return request({
        url: '/business/BunkerInRecord/list',
        method: 'get',
        params: params
    })
}
// 来煤记录--查询指定状态来煤计划
export function RecordPlanData(params?: any) {
    return request({
        url: '/business/CoalInPlan/GetRecordPlan?status=0',
        method: 'get',
        params: params
    })
}

// 来煤记录-删除
export function delBunkerInRecord<T>(ids: any) {
    return request<T, Data<T>>({
        url: '/business/BunkerInRecord/' + ids,
        method: 'delete'
    })
}
// 来煤记录-添加
export function addBunkerInRecord<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/BunkerInRecord',
        method: 'post',
        data: data
    })
}
// 来煤记录-修改
export function editBunkerInRecord<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/BunkerInRecord',
        method: 'put',
        data: data
    })
}




// 入炉煤质
export function FurnaceCoalQualityList(params?: any) {
    return request({
        url: '/business/FurnaceCoalQuality/newList',
        method: 'get',
        params: params
    })
}
// 入炉煤质--添加
export function addFurnaceCoalQuality<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceCoalQuality',
        method: 'post',
        data: data
    })
}
// 入炉煤质-修改
export function editFurnaceCoalQuality<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceCoalQuality',
        method: 'put',
        data: data
    })
}
// 入炉煤质-删除
export function delFurnaceCoalQuality<T>(ids: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceCoalQuality/' + ids,
        method: 'delete'
    })
}
// 入炉煤质-详情
export function FurnaceCoalQualityInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: 'business/FurnaceCoalQuality/detailed/' + id,
        method: 'get'
    })
}

// 入炉煤质-获取指定项目煤质数据
export function CoalQualityProjectDataList<T>(cqId: number, dataType: number) {
    return request<T, Data<T>>({
        url: '/business/FactoryCoalQuality/CoalQualityProjectDataList?cqId=' + cqId + '&dataType=' + dataType,
        method: 'get'
    })
}

// 入炉煤质-入炉采样记录
export function FurnaceCoalQualitySampling<T>(date: string) {
    return request<T, Data<T>>({
        url: '/business/FurnaceCoalQuality/sampling/' + date,
        method: 'get'
    })
}


// 加权明细
export function FurnaceCoalQualityWeighting(id: number) {
    return request({
        url: '/business/FactoryCoalQuality/weighting/' + id,
        method: 'get'
    })
}

// 入炉分煤种煤质
export function FurnaceCoalQualityWeight<T>(date: string) {
    return request<T, Data<T>>({
        url: '/business/FurnaceCoalQuality/weighting/' + date,
        method: 'get'
    })
}




// 入炉记录
export function FurnaceInRecordList(params?: any) {
    return request({
        url: '/business/FurnaceInRecord/list',
        method: 'get',
        params: params
    })
}
// 入炉记录--添加
export function addFurnaceInRecord<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceInRecord',
        method: 'post',
        data: data
    })
}

// 入炉记录-删除
export function delFurnaceInRecord<T>(ids: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceInRecord/' + ids,
        method: 'delete'
    })
}

// 入炉记录-详情
export function FurnaceInRecordInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FurnaceInRecord/' + id,
        method: 'get'
    })
}

// 入炉记录-详细详情
export function FurnaceInRecordDetail<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FurnaceInRecord/detail/' + id,
        method: 'get'
    })
}



// 皮带秤记录
export function MultibeltRecordList(params?: any) {
    return request({
        url: '/business/MultibeltRecord/list',
        method: 'get',
        params: params
    })
}

// 皮带秤记录-详细详情
export function MultibeltRecordDetail<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/MultibeltRecord/' + id,
        method: 'get'
    })
}

// 入炉记录--添加
export function addMultibeltRecord<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/MultibeltRecord',
        method: 'post',
        data: data
    })
}

// 皮带秤记录-删除
export function delMultibeltRecord<T>(ids: any) {
    return request<T, Data<T>>({
        url: '/business/MultibeltRecord/' + ids,
        method: 'delete'
    })
}

// 皮带秤记录-搜索下拉框
export function QueryAllMultibeltMsg<T>() {
    return request<T, Data<T>>({
        url: '/business/MultibeltMsg/QueryAllMultibeltMsg',
        method: 'get'
    })
}











// 系统管理----------------------------------------------------------------------
// 煤场信息--列表
export function FuelBunkerTRecordList(params?: any) {
    return request({
        url: '/business/FuelBunkerTRecord/list',
        method: 'get',
        params: params
    })
}
// 煤场信息--添加
export function addFuelBunkerTRecord<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FuelBunkerTRecord',
        method: 'post',
        data: data
    })
}
// 煤场信息--修改
export function editFuelBunkerTRecord<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FuelBunkerTRecord',
        method: 'put',
        data: data
    })
}
// 煤场信息--删除
export function delFuelBunkerTRecord<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/FuelBunkerTRecord/' + id,
        method: 'delete'
    })
}
// 煤场信息-详情
export function FuelBunkerTRecordInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FuelBunkerTRecord/' + id,
        method: 'get'
    })
}

//----------------------------------------

// 煤场分区--列表
export function FuelAreaList(params?: any) {
    return request({
        url: '/business/FuelArea/list',
        method: 'get',
        params: params
    })
}
// 煤场分区--添加
export function addFuelArea<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FuelArea',
        method: 'post',
        data: data
    })
}
// 煤场分区--修改
export function editFuelArea<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FuelArea',
        method: 'put',
        data: data
    })
}
// 煤场分区--删除
export function delFuelArea<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/FuelArea/' + id,
        method: 'delete'
    })
}
// 煤场分区-详情
export function FuelAreaInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FuelArea/' + id,
        method: 'get'
    })
}

//----------------------------------------

// 煤炭种类--列表
export function FuelQualityTFueltypeList(params?: any) {
    return request({
        url: '/business/FuelQualityTFueltype/list',
        method: 'get',
        params: params
    })
}
// 煤炭种类--添加
export function addFuelQualityTFueltype<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FuelQualityTFueltype',
        method: 'post',
        data: data
    })
}
// 煤炭种类--修改
export function editFuelQualityTFueltype<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FuelQualityTFueltype',
        method: 'put',
        data: data
    })
}
// 煤炭种类--删除
export function delFuelQualityTFueltype<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/FuelQualityTFueltype/' + id,
        method: 'delete'
    })
}
// 煤炭种类-详情
export function FuelQualityTFueltypeInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FuelQualityTFueltype/' + id,
        method: 'get'
    })
}


//----------------------------------------


// 锅炉管理--列表
export function FurnaceMsgList(params?: any) {
    return request({
        url: '/business/FurnaceMsg/groupList',
        method: 'get',
        params: params
    })
}
// 锅炉管理--添加
export function addFurnaceMsg<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceMsg',
        method: 'post',
        data: data
    })
}
// 锅炉管理--修改
export function editFurnaceMsg<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceMsg',
        method: 'put',
        data: data
    })
}
// 锅炉管理--删除
export function delFurnaceMsg<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceMsg/' + id,
        method: 'delete'
    })
}
// 锅炉管理-详情
export function FurnaceMsgInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/FurnaceMsg/' + id,
        method: 'get'
    })
}


//----------------------------------------

// 皮带秤管理--列表
export function MultibeltMsgList(params?: any) {
    return request({
        url: '/business/MultibeltMsg/list',
        method: 'get',
        params: params
    })
}
export function MultibeltMsgGroupList(params?: any) {
    return request({
        url: '/business/MultibeltMsg/groupList',
        method: 'get',
        params: params
    })
}
// 皮带秤管理--添加
export function addMultibeltMsg<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/MultibeltMsg',
        method: 'post',
        data: data
    })
}
// 皮带秤管理--修改
export function editMultibeltMsg<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/MultibeltMsg',
        method: 'put',
        data: data
    })
}
// 皮带秤管理--删除
export function delMultibeltMsg<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/MultibeltMsg/' + id,
        method: 'delete'
    })
}
// 皮带秤管理-详情
export function MultibeltMsgInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/MultibeltMsg/' + id,
        method: 'get'
    })
}

//----------------------------------------

// 供应商信息表
export function SupplierMsgList(params?: any) {
    return request({
        url: '/business/SupplierMsg/list',
        method: 'get',
        params: params
    })
}
// 供应商信息表--添加
export function addSupplierMsg<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/SupplierMsg',
        method: 'post',
        data: data
    })
}
// 供应商信息表-修改
export function editSupplierMsg<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/SupplierMsg',
        method: 'put',
        data: data
    })
}
// 供应商信息表-删除
export function delSupplierMsg<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/SupplierMsg/' + id,
        method: 'delete'
    })
}
// 供应商信息表-详情
export function SupplierMsgInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/SupplierMsg/' + id,
        method: 'get'
    })
}

//----------------------------------------
// 设施设备

// 设备管理-列表
export function SystemDeviceTEnvmonitor(params?: any) {
    return request({
        url: '/business/SystemDeviceTEnvmonitor/list',
        method: 'get',
        params: params
    })
}
// 设备管理--添加
export function addDeviceTEnvmonitor<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/SystemDeviceTEnvmonitor',
        method: 'post',
        data: data
    })
}
// 设备管理-修改
export function editDeviceTEnvmonitor<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/SystemDeviceTEnvmonitor',
        method: 'put',
        data: data
    })
}
// 设备管理-删除
export function delDeviceTEnvmonitor<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/SystemDeviceTEnvmonitor/' + id,
        method: 'delete'
    })
}
// 设备管理-详情
export function DeviceTEnvmonitorInfo<T>(id: number) {
    return request<T, Data<T>>({
        url: '/business/SystemDeviceTEnvmonitor/' + id,
        method: 'get'
    })
}


// 设备报警-列表
export function DeviceWarnInfo(params?: any) {
    return request({
        url: '/business/DeviceWarnInfo/list',
        method: 'get',
        params: params
    })
}

// 设备报警-处理
export function DeviceWarnStatus<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/DeviceWarnInfo/status',
        method: 'put',
        data: data
    })
}


//----------------------------------------
// 统计分析

// 来煤统计--按时间
export function GetBunkerInStaticByDate<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/BunkerInRecord/GetBunkerInStaticByDate',
        method: 'post',
        data: data
    })
}

// 来煤统计--按煤种
export function GetBunkerInStaticByBunkerType<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/BunkerInRecord/GetBunkerInStaticByBunkerType',
        method: 'post',
        data: data
    })
}

// 来煤统计--按供应商
export function GetBunkerInStaticBySupplier<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/BunkerInRecord/GetBunkerInStaticBySupplier',
        method: 'post',
        data: data
    })
}

// 入炉统计--按时间
export function FurnaceInStaticByDate<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceInRecord/GetFurnaceInStaticByDate',
        method: 'post',
        data: data
    })
}


// 入炉统计--按位置
export function FurnaceInStaticByPosition<T>(data: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceInRecord/GetFurnaceInStaticByPosition',
        method: 'post',
        data: data
    })
}




// 设备统计--设备故障排行榜
export function QueryDeviceWarnRankInfo(params?: any) {
    return request({
        url: '/business/DeviceWarnInfo/QueryDeviceWarnRankInfo',
        method: 'get',
        params: params
    })
}

// 设备统计--设备运行时长排行榜
export function QueryDeviceUseRankInfo(params?: any) {
    return request({
        url: '/business/DeviceWarnInfo/QueryDeviceUseRankInfo',
        method: 'get',
        params: params
    })
}

// 盘煤结果分析--
export function FuelWorkTInventoryAnalysis(params?: any) {
    return request({
        url: '/business/FuelWorkTInventoryInfo/analysis',
        method: 'get',
        params: params
    })
}

// 盘煤统计--
export function FuelBunkerTRecordStaticData(params?: any) {
    return request({
        url: '/business/FuelWorkTInventoryInfo/GetFuelBunkerTRecordStaticData',
        method: 'get',
        params: params
    })
}
























//----------------------------------------

// 字典-----multibelt_group
export function DictDataType<T>(dictType: any) {
    return request<T, Data<T>>({
        url: '/system/dict/data/type/' + dictType,
        method: 'get'
    })
}

// 根据 锅炉编码 查询 入炉位置
export function FurnaceMsgListByDicCode<T>(code: any) {
    return request<T, Data<T>>({
        url: '/business/FurnaceMsg/GetFurnaceMsgListByDicCode?code=' + code,
        method: 'get'
    })
}


// 煤炭种类-下拉框数据
export function AllFuelTypeList() {
    return request({
        url: '/business/FuelQualityTFueltype/AllFuelTypeList',
        method: 'get'
    })
}



// 供应商-下拉框数据
export function AllSupplierMsgList() {
    return request({
        url: '/business/SupplierMsg/AllList',
        method: 'get'
    })
}

//煤场信息表-全部--取煤方向
export function GetAllBunkerData() {
    return request({
        url: '/business/FuelBunkerTRecord/GetAllBunkerData',
        method: 'get'
    })
}

// 根据 煤场id编码 查询 煤场区域
export function AreaByBunkerId<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/FuelArea/GetAreaByBunkerId?bunkerId=' + id,
        method: 'get'
    })
}

// 获取入场编码
export function EntryAndBunkerType() {
    return request({
        url: 'business/BunkerInRecord/GetEntryAndBunkerType',
        method: 'get'
    })
}

// 班次信息
export function ClassInfo<T>(id: any) {
    return request<T, Data<T>>({
        url: '/business/ClassInfo/category/' + id,
        method: 'get'
    })
}

// 班组班次--树型数组
export function ClassInfoGroups<T>() {
    return request<T, Data<T>>({
        url: '/business/ClassInfo/groups/0',
        method: 'get'
    })
}

// 入炉煤质
export function AllFurnaceCoalQuality<T>() {
    return request<T, Data<T>>({
        url: '/business/FurnaceCoalQuality/GetAllFurnaceCoalQuality',
        method: 'get'
    })
}

// 取煤煤质
export function AllFactoryCoalQuality<T>() {
    return request<T, Data<T>>({
        url: '/business/FactoryCoalQuality/GetAllFactoryCoalQuality',
        method: 'get'
    })
}

/** 获取附件站点 */
export function bunkerFileUrl() {
    return request<string, Data<string>>({
        url: '/system/config/configKey/bunkerFileUrl',
        method: 'get'
    })
}